import { useMediaQuery } from 'react-responsive'

const isMd = ({ children }) => {
  // const flag = useMediaQuery({ minWidth: 768, maxWidth: 991 })
  const flag = useMediaQuery({ maxWidth: 991 })
  return flag ? children : null
}

export default isMd
